	.file	"lcd.c"
	.global	i1_cmd
	.data
	.align	2
	.type	i1_cmd, %object
	.size	i1_cmd, 4
i1_cmd:
	.word	-2113929216
	.global	i2_cmd
	.align	2
	.type	i2_cmd, %object
	.size	i2_cmd, 4
i2_cmd:
	.word	-2097152000
	.global	i1_data
	.align	2
	.type	i1_data, %object
	.size	i1_data, 4
i1_data:
	.word	-2113929214
	.global	i2_data
	.align	2
	.type	i2_data, %object
	.size	i2_data, 4
i2_data:
	.word	-2097151998
	.text
	.align	2
	.global	read_status
	.type	read_status, %function
read_status:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #8
	ldr	r3, .L16
	ldr	r3, [r3, #0]
	ldrb	r3, [r3, #0]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L2
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L4
.L2:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L5
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L4
.L5:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r3, asl #24
	mov	r3, r3, asr #24
	cmp	r3, #0
	bge	.L7
	mov	r3, #8
	str	r3, [fp, #-20]
	b	.L4
.L7:
	ldr	r3, .L16+4
	ldr	r3, [r3, #0]
	ldrb	r3, [r3, #0]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L9
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L4
.L9:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L11
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L4
.L11:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r3, asl #24
	mov	r3, r3, asr #24
	cmp	r3, #0
	bge	.L13
	mov	r3, #8
	str	r3, [fp, #-20]
	b	.L4
.L13:
	mov	r3, #0
	str	r3, [fp, #-20]
.L4:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
.L17:
	.align	2
.L16:
	.word	i1_cmd
	.word	i2_cmd
	.size	read_status, .-read_status
	.align	2
	.global	_wait_normal_status
	.type	_wait_normal_status, %function
_wait_normal_status:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #8
	bl	clock_ms
	mov	r3, r0
	str	r3, [fp, #-16]
	b	.L19
.L20:
	ldr	r0, [fp, #-16]
	bl	dtime_ms
	mov	r2, r0
	mov	r3, #496
	add	r3, r3, #3
	cmp	r2, r3
	bls	.L19
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L22
.L19:
	bl	read_status
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	mov	r3, #0
	str	r3, [fp, #-20]
.L22:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
	.size	_wait_normal_status, .-_wait_normal_status
	.align	2
	.global	display_on_off
	.type	display_on_off, %function
display_on_off:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	ldr	r3, .L27
	ldr	r2, [r3, #0]
	mvn	r3, #80
	strb	r3, [r2, #0]
	ldr	r3, .L27+4
	ldr	r2, [r3, #0]
	mvn	r3, #80
	strb	r3, [r2, #0]
	mov	r3, #0
	mov	r0, r3
	ldmfd	sp, {fp, sp, pc}
.L28:
	.align	2
.L27:
	.word	i1_cmd
	.word	i2_cmd
	.size	display_on_off, .-display_on_off
	.align	2
	.global	select_adc
	.type	select_adc, %function
select_adc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-16]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L30
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L30
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L33
.L30:
	ldr	r3, .L35
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-16]
	mvn	r3, r3
	and	r3, r3, #95
	mvn	r3, r3
	and	r3, r3, #255
	strb	r3, [r2, #0]
	ldr	r3, .L35+4
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-16]
	mvn	r3, r3
	and	r3, r3, #95
	mvn	r3, r3
	and	r3, r3, #255
	strb	r3, [r2, #0]
	mov	r3, #0
	str	r3, [fp, #-20]
.L33:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
.L36:
	.align	2
.L35:
	.word	i1_cmd
	.word	i2_cmd
	.size	select_adc, .-select_adc
	.align	2
	.global	static_drive
	.type	static_drive, %function
static_drive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-16]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L38
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L38
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L41
.L38:
	ldr	r3, .L43
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-16]
	mvn	r3, r3
	and	r3, r3, #91
	mvn	r3, r3
	and	r3, r3, #255
	strb	r3, [r2, #0]
	ldr	r3, .L43+4
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-16]
	mvn	r3, r3
	and	r3, r3, #91
	mvn	r3, r3
	and	r3, r3, #255
	strb	r3, [r2, #0]
	mov	r3, #0
	str	r3, [fp, #-20]
.L41:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
.L44:
	.align	2
.L43:
	.word	i1_cmd
	.word	i2_cmd
	.size	static_drive, .-static_drive
	.align	2
	.global	select_duty
	.type	select_duty, %function
select_duty:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-16]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L46
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L46
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L49
.L46:
	ldr	r3, .L51
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-16]
	mvn	r3, r3
	and	r3, r3, #87
	mvn	r3, r3
	and	r3, r3, #255
	strb	r3, [r2, #0]
	ldr	r3, .L51+4
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-16]
	mvn	r3, r3
	and	r3, r3, #87
	mvn	r3, r3
	and	r3, r3, #255
	strb	r3, [r2, #0]
	mov	r3, #0
	str	r3, [fp, #-20]
.L49:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
.L52:
	.align	2
.L51:
	.word	i1_cmd
	.word	i2_cmd
	.size	select_duty, .-select_duty
	.align	2
	.global	select_string
	.type	select_string, %function
select_string:
	@ args = 0, pretend = 0, frame = 12
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #12
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-16]
	mov	r3, r2
	strb	r3, [fp, #-20]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L54
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L54
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L57
.L54:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L58
	ldr	r3, .L62
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-20]
	mvn	r3, r3, asl #26
	mvn	r3, r3, lsr #26
	and	r3, r3, #255
	strb	r3, [r2, #0]
	b	.L60
.L58:
	ldr	r3, .L62+4
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-20]
	mvn	r3, r3, asl #26
	mvn	r3, r3, lsr #26
	and	r3, r3, #255
	strb	r3, [r2, #0]
.L60:
	bl	_wait_normal_status
	mov	r3, r0
	str	r3, [fp, #-24]
.L57:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
.L63:
	.align	2
.L62:
	.word	i1_cmd
	.word	i2_cmd
	.size	select_string, .-select_string
	.align	2
	.global	init_lcd
	.type	init_lcd, %function
init_lcd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	mov	r0, #1
	bl	display_on_off
	bl	_wait_normal_status
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	mov	r0, #0
	bl	select_adc
	bl	_wait_normal_status
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	mov	r0, #0
	bl	static_drive
	bl	_wait_normal_status
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	mov	r0, #1
	bl	select_duty
	bl	_wait_normal_status
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	mov	r0, #0
	mov	r1, #0
	bl	select_string
	mov	r0, #1
	mov	r1, #0
	bl	select_string
	mov	r0, #0
	bl	clear_lcd
.L70:
	ldmfd	sp, {fp, sp, pc}
	.size	init_lcd, .-init_lcd
	.align	2
	.global	select_column
	.type	select_column, %function
select_column:
	@ args = 0, pretend = 0, frame = 12
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #12
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-16]
	mov	r3, r2
	strb	r3, [fp, #-20]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L72
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L72
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L75
.L72:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L76
	ldr	r3, .L80
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-20]
	strb	r3, [r2, #0]
	b	.L78
.L76:
	ldr	r3, .L80+4
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-20]
	strb	r3, [r2, #0]
.L78:
	bl	_wait_normal_status
	mov	r3, r0
	str	r3, [fp, #-24]
.L75:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
.L81:
	.align	2
.L80:
	.word	i1_cmd
	.word	i2_cmd
	.size	select_column, .-select_column
	.align	2
	.global	select_page
	.type	select_page, %function
select_page:
	@ args = 0, pretend = 0, frame = 12
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #12
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-16]
	mov	r3, r2
	strb	r3, [fp, #-20]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L83
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L83
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L86
.L83:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L87
	ldr	r3, .L91
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-20]
	mvn	r3, r3
	and	r3, r3, #71
	mvn	r3, r3
	and	r3, r3, #255
	strb	r3, [r2, #0]
	b	.L89
.L87:
	ldr	r3, .L91+4
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-20]
	mvn	r3, r3
	and	r3, r3, #71
	mvn	r3, r3
	and	r3, r3, #255
	strb	r3, [r2, #0]
.L89:
	bl	_wait_normal_status
	mov	r3, r0
	str	r3, [fp, #-24]
.L86:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
.L92:
	.align	2
.L91:
	.word	i1_cmd
	.word	i2_cmd
	.size	select_page, .-select_page
	.align	2
	.global	read_data_lcd
	.type	read_data_lcd, %function
read_data_lcd:
	@ args = 0, pretend = 0, frame = 12
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #12
	mov	r3, r0
	str	r1, [fp, #-20]
	strb	r3, [fp, #-16]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L94
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L94
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L97
.L94:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L98
	ldr	r3, .L102
	ldr	r3, [r3, #0]
	ldrb	r3, [r3, #0]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	strb	r3, [r2, #0]
	b	.L100
.L98:
	ldr	r3, .L102+4
	ldr	r3, [r3, #0]
	ldrb	r3, [r3, #0]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	strb	r3, [r2, #0]
.L100:
	bl	_wait_normal_status
	mov	r3, r0
	str	r3, [fp, #-24]
.L97:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
.L103:
	.align	2
.L102:
	.word	i1_data
	.word	i2_data
	.size	read_data_lcd, .-read_data_lcd
	.align	2
	.global	write_data_lcd
	.type	write_data_lcd, %function
write_data_lcd:
	@ args = 0, pretend = 0, frame = 12
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #12
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-16]
	mov	r3, r2
	strb	r3, [fp, #-20]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L105
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L105
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L108
.L105:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L109
	ldr	r3, .L113
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-20]
	strb	r3, [r2, #0]
	b	.L111
.L109:
	ldr	r3, .L113+4
	ldr	r2, [r3, #0]
	ldrb	r3, [fp, #-20]
	strb	r3, [r2, #0]
.L111:
	bl	_wait_normal_status
	mov	r3, r0
	str	r3, [fp, #-24]
.L108:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
.L114:
	.align	2
.L113:
	.word	i1_data
	.word	i2_data
	.size	write_data_lcd, .-write_data_lcd
	.align	2
	.global	put_pixel
	.type	put_pixel, %function
put_pixel:
	@ args = 0, pretend = 0, frame = 20
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #20
	mov	r3, r0
	strb	r3, [fp, #-20]
	mov	r3, r1
	strb	r3, [fp, #-24]
	mov	r3, r2
	strb	r3, [fp, #-28]
	mov	r3, #0
	strb	r3, [fp, #-15]
	mov	r3, #0
	strb	r3, [fp, #-14]
	mov	r3, #0
	strb	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #121
	bls	.L116
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L118
.L116:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #31
	bls	.L119
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L118
.L119:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L121
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #15
	bhi	.L121
	mov	r3, #1
	strb	r3, [fp, #-15]
.L121:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #15
	bls	.L124
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #23
	bhi	.L124
	mov	r3, #2
	strb	r3, [fp, #-15]
.L124:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #23
	bls	.L127
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #31
	bhi	.L127
	mov	r3, #3
	strb	r3, [fp, #-15]
.L127:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #60
	bls	.L130
	mov	r3, #1
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-20]
	sub	r3, r3, #61
	strb	r3, [fp, #-20]
.L130:
	bl	_wait_normal_status
	mov	r3, r0
	cmp	r3, #0
	beq	.L132
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L118
.L132:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldrb	r2, [fp, #-15]	@ zero_extendqisi2
	mov	r0, r3
	mov	r1, r2
	bl	select_page
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	mov	r1, r2
	bl	select_column
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	and	r2, r3, #7
	mov	r3, #1
	mov	r3, r3, asl r2
	strb	r3, [fp, #-14]
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L134
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	mvn	r3, r3
	and	r3, r3, #255
	strb	r3, [fp, #-14]
.L134:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r2, fp, #16
	mov	r0, r3
	mov	r1, r2
	bl	read_data_lcd
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r2, fp, #16
	mov	r0, r3
	mov	r1, r2
	bl	read_data_lcd
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L136
	ldrb	r2, [fp, #-16]	@ zero_extendqisi2
	ldrb	r3, [fp, #-14]
	orr	r3, r2, r3
	and	r3, r3, #255
	strb	r3, [fp, #-16]
	b	.L138
.L136:
	ldrb	r2, [fp, #-16]	@ zero_extendqisi2
	ldrb	r3, [fp, #-14]
	and	r3, r2, r3
	and	r3, r3, #255
	strb	r3, [fp, #-16]
.L138:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	mov	r1, r2
	bl	select_column
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	mov	r0, r2
	mov	r1, r3
	bl	write_data_lcd
	mov	r3, #0
	str	r3, [fp, #-32]
.L118:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
	.size	put_pixel, .-put_pixel
	.align	2
	.global	clear_lcd
	.type	clear_lcd, %function
clear_lcd:
	@ args = 0, pretend = 0, frame = 12
	@ frame_needed = 1, uses_anonymous_args = 0
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	sub	fp, ip, #4
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-15]
	mov	r3, #0
	strb	r3, [fp, #-14]
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L141
	mvn	r3, #0
	strb	r3, [fp, #-14]
.L141:
	bl	_wait_normal_status
	mov	r3, r0
	cmp	r3, #0
	beq	.L143
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L145
.L143:
	mov	r3, #0
	strb	r3, [fp, #-15]
	b	.L146
.L147:
	mov	r3, #0
	strb	r3, [fp, #-13]
	b	.L148
.L149:
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	mov	r1, r2
	bl	select_page
	mov	r3, #0
	strb	r3, [fp, #-16]
	b	.L150
.L151:
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	ldrb	r2, [fp, #-16]	@ zero_extendqisi2
	mov	r0, r3
	mov	r1, r2
	bl	select_column
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	mov	r0, r3
	mov	r1, r2
	bl	write_data_lcd
	ldrb	r3, [fp, #-16]
	add	r3, r3, #1
	strb	r3, [fp, #-16]
.L150:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #60
	bls	.L151
	ldrb	r3, [fp, #-13]
	add	r3, r3, #1
	strb	r3, [fp, #-13]
.L148:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L149
	ldrb	r3, [fp, #-15]
	add	r3, r3, #1
	strb	r3, [fp, #-15]
.L146:
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L147
	mov	r3, #0
	str	r3, [fp, #-24]
.L145:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #12
	ldmfd	sp, {fp, sp, pc}
	.size	clear_lcd, .-clear_lcd
	.ident	"GCC: (GNU) 4.1.1"
